import { Typography, Button } from 'antd';
import { history } from 'ice';

const ErrorPage = () => {
  return (
    <div style={{ textAlign: 'center', padding: '50px' }}>
      <Typography.Title level={2}>404 - 页面未找到</Typography.Title>
      <Typography.Paragraph>很抱歉，您访问的页面不存在。</Typography.Paragraph>
      <Button type="primary" onClick={() => history?.push('/')}>返回首页</Button>
    </div>
  );
};

export default ErrorPage;